import LoopObject, { MOUNT_ENTRY_FUNCTION } from "@/loop"


export default class StructureControlLoopObject extends LoopObject {

    tickStart(): void {
    }
    do(): void {
        const hashMap: AnyHashMap = Game.structures
        // 遍历执行 work
        const allItem = Object.values(hashMap)
        // 遍历每个对象并检查其入口方法后再执行
        allItem.forEach(item => item[MOUNT_ENTRY_FUNCTION] && this.doWithCatcher(item))
    }
    afterWork(): void {
    }
    tickEnd(): void {
    }
}
